/**
 * @author   zhangyp
 * @created  2013-10-15 下午5:36:39
 * @email    zviolet@163.com
 * TODO      设置管理
 */
package com.bible.fire.local;

import com.bible.fire.util.AndroidUtil;
import com.bible.fire.util.WindowUtil;

import android.content.Context;
import android.content.Intent;
import android.provider.Settings;

public class SettingManager {

	public static void checkGPSSetting(Context context){
		if( !AndroidUtil.isGpsOpen() ){
			final Context fcontext = context;
			Runnable runable = new Runnable(){
				@Override
				public void run() {
					Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS ); 
					fcontext.startActivity(intent);	
				}			
			};
			WindowUtil.showOperateDialog(context, "gps未开启", "提示", runable);
		}
	}
}
